package com.quikin.persistence.jpa.test;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the EMPLOYEE database table.
 * 
 */
@Entity
public class Employee implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private EmployeePK id;

	@Column(name="CREATE_ON")
	private Timestamp createOn;

	private String email;

	@Column(name="FIRST_NAME")
	private String firstName;

	@Column(name="LAST_NAME")
	private String lastName;

	private String mobile;

	private String nickname;

	@Column(name="TEL_EXT")
	private String telExt;

	@Column(name="UPDATE_ON")
	private Timestamp updateOn;

	//bi-directional one-to-one association to EmployeeCredential
	@OneToOne(mappedBy="employee")
	private EmployeeCredential employeeCredential;

    public Employee() {
    }

	public EmployeePK getId() {
		return this.id;
	}

	public void setId(EmployeePK id) {
		this.id = id;
	}
	
	public Timestamp getCreateOn() {
		return this.createOn;
	}

	public void setCreateOn(Timestamp createOn) {
		this.createOn = createOn;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFirstName() {
		return this.firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return this.lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getTelExt() {
		return this.telExt;
	}

	public void setTelExt(String telExt) {
		this.telExt = telExt;
	}

	public Timestamp getUpdateOn() {
		return this.updateOn;
	}

	public void setUpdateOn(Timestamp updateOn) {
		this.updateOn = updateOn;
	}

	public EmployeeCredential getEmployeeCredential() {
		return this.employeeCredential;
	}

	public void setEmployeeCredential(EmployeeCredential employeeCredential) {
		this.employeeCredential = employeeCredential;
	}
	
}